#ifndef MYQTHREAD_H
#define MYQTHREAD_H

#include <QMainWindow>
#include<QThread>
#include<QDebug>
#include<QVector>
#include <QRandomGenerator>

class myQThread : public QThread
{
    Q_OBJECT

public:
    myQThread(QVector<QString> name):name(name){ m_stop = false;};
    void run() override;
    void stop();

signals:
void setPBtnEnableSignal(bool flag);
void updateLabelSignal(QString name);

private:
    QVector<QString> name;
    volatile bool m_stop;
};

#endif // MYQTHREAD_H
